package com.manong.bookstore.store.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient("bookstore-admin")
public interface AdminFeignService {
    @RequestMapping("/admin/classify/getName/{classifyId}")
    String getClassifyName(@PathVariable("classifyId") Integer classifyId);

    @RequestMapping("/admin/classify/listClassifyNames")
    Object[] listClassifyNames(@RequestParam Map<String, Object> params);
}
